@media (max-width: 1139.9px) and (max-width: 1139.9px) {
    .content {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1140px) and (max-width: 1299.9px) {
    .content {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1400px) and (max-width: 1559.9px) {
    .content {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1560px) and (max-width: 2060px) {
    .content {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 2060px) and (min-width: 2060px) {
    .content {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1279.9px) {
    .right-entry span {
        display: none;
    }

    .right-entry .upload {
        width: 34px;
    }
}

@media (min-width: 1280px) {
    .right-entry li {
        min-width: 50px;
    }

    .right-entry .upload {
        width: 90px;
        margin-left: 12px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style-type: none;
    letter-spacing: 2px;
    font-family: PingFang SC, HarmonyOS_Medium, Helvetica Neue, Microsoft YaHei, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    max-width: 2560px;
    // min-width: 1060px;
    margin: 0 auto;
}

header {
    height: 155px;
    background-color: greenyellow;
}

.banner {
    background-color: pink;
    height: 155px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), transparent), url('img/banner.avif');
    position: relative;

    .logo {
        height: 78px;
        width: 162px;
        position: absolute;
        left: 56px;
        bottom: 10px;
        // background-color: #18191c;

        img {
            width: 100%;
            height: 100%;
        }
    }


}

.banner .bar {
    height: 64px;
    // background-color: blue;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    // width: 100%;
    // overflow: auto;

    li {
        &:hover {
            margin-top: -3px;
        }
    }

    .left-entry {
        display: flex;
        height: 100%;
        // width: 500px;
        flex-shrink: 0;
        // background-color: white;
        font-family: PingFang SC, HarmonyOS_Medium, Helvetica Neue, Microsoft YaHei, sans-serif;

        ul {
            display: flex;
            align-items: center;

            flex-shrink: 0;

            li {
                margin-right: 10px;
                height: 64px;
                line-height: 64px;
                font-size: 14px;
                color: #fff;


                .title {
                    display: flex;
                    align-items: center;

                    img {
                        width: 18px;
                        // height: 18px;
                        margin-right: 6px;
                    }
                }


            }

            .drama {
                position: relative;

                &:hover .panel {
                    opacity: 1;
                    max-width: 1000px;
                    max-height: 1000px;
                }

                .panel {
                    width: 480px;
                    height: 300px;
                    position: absolute;
                    // transform: translate(-50%);
                    top: 64px;
                    left: 0;
                    z-index: 1001;
                    border-radius: 8px;
                    transition: all .2s;
                    max-height: 0;
                    max-width: 0;
                    opacity: 0;
                }
            }

            .game {
                position: relative;

                &:hover .panel {
                    opacity: 1;
                    max-width: 1000px;
                    max-height: 1000px;
                }

                .panel {
                    width: 424px;
                    height: 295px;
                    position: absolute;
                    transform: translate(-50%);
                    top: 64px;
                    z-index: 1001;
                    border-radius: 8px;
                    transition: all .2s;
                    max-height: 0;
                    max-width: 0;
                    opacity: 0;
                }

            }

            .download {
                display: flex;
                align-items: center;
                position: relative;

                &:hover .panel {
                    opacity: 1;
                    max-width: 1000px;
                    max-height: 1000px;
                }

                svg {
                    width: 16px;
                    margin-right: 5px;
                }

                .panel {
                    width: 387px;
                    height: 216px;
                    position: absolute;
                    transform: translate(-50%);
                    top: 64px;
                    z-index: 1001;
                    border-radius: 8px;
                    transition: all .2s;
                    max-height: 0;
                    max-width: 0;
                    opacity: 0;
                }
            }
        }
    }

    .center-search {
        display: flex;
        // justify-content: end;
        position: relative;
        flex-shrink: 1;
        max-width: 460px;

        .search-panel {
            display: none;
            width: 100%;
            height: 257px;
            background-color: white;
            position: absolute;
            // margin: auto;
            border-radius: 0 0 8px 8px;
            z-index: 1000;
            padding: 13px 0 16px;
            background: url('img/热搜.png') no-repeat center / contain;
        }

        .uni {
            position: relative;
            width: 500px;
            margin: 0 auto;
        }

        form {
            display: flex;
            height: 40px;
            position: relative;
            border-radius: 8px 8px;
            background-color: #f1f2f3;
            padding: 0 48px 0 4px;
            justify-content: space-between;
            align-items: center;
            opacity: .92;
            max-width: 500px;

            width: 100%;
            flex: 1 auto;
            z-index: 1000;

            &:hover {
                opacity: 1;
            }

            .content {
                height: 32px;
                padding: 1px 8px;
                width: 100%;
                display: flex;
                justify-content: space-between;
                border-radius: 6px;



                input {
                    overflow: hidden;
                    padding-right: 8px;
                    font-size: 14px;
                    line-height: 20px;
                    border: 0;
                    width: 100%;

                    &:active,
                    &:focus {
                        outline: none;
                        // background-color: #D5D9DC;
                        border: none;

                        .content {
                            background-color: #D5D9DC;
                        }
                    }
                }
            }

            .btn-search {
                display: flex;
                align-items: center;
                justify-content: center;
                position: absolute;
                right: 8px;
                width: 32px;
                height: 32px;
                border-radius: 6px;
                // background-color: #E2E5E7;

                &:hover {
                    background-color: #E2E5E7;
                }

            }
        }
    }

    .right-entry {
        display: flex;
        margin-left: 10px;
        flex-shrink: 0;

        ul {
            display: flex;
            justify-content: space-between;
            align-items: center;
            // width: 320px;
            height: 50px;
            // background-color: blue;

            .head-portrait {
                width: 50px;
                height: 50px;
                position: relative;
                // transform: translateY(6px);
                top: 6px;

                &:hover {
                    img {
                        transform: scale(2);
                    }

                    .panel {
                        max-height: 1000px;
                        opacity: 1;
                    }
                }

                img {
                    width: 38px;
                    height: 38px;
                    border-radius: 38px;
                    border: 2px solid white;
                    transition: all .3s;
                    transform-origin: right top;
                    position: relative;
                    z-index: 1002;
                }

                .panel {
                    width: 300px;
                    height: 475px;
                    background-color: white;
                    padding: 0 24px 18px;
                    transform: translate(-50%, 0);
                    transition: all .3s;
                    border-radius: 8px;
                    position: absolute;
                    z-index: 1001;
                    opacity: 0;
                    max-height: 0px;
                    background-image: url('img/头像信息图.png');
                    background-position: center;
                    background-size: contain;
                    background-repeat: no-repeat;
                }
            }

            .items {

                // width: 20px;
                // height: 20px;
                color: #fff;
                display: flex;
                flex-direction: column;
                text-align: center;
                align-items: center;
                font-size: 13px;
                // margin: 0 5px;

                svg {
                    display: block;
                    margin: 0 5px;
                }
            }

            .upload {
                // width: 90px;
                height: 34px;
                display: flex;
                border-radius: 8px;
                background-color: #fb7299;
                align-items: center;
                justify-content: center;
                color: #fff;
                font-size: 14px;
                line-height: 20px;
                position: relative;

                &:hover .panel {
                    opacity: 1;
                    max-height: 1000px;
                    max-width: 1000px;
                }

                svg {
                    color: white;
                    transform: translateY(2.5px);
                    margin-right: 3px;
                }

                .panel {
                    width: 390px;
                    height: 80px;
                    background-color: pink;
                    position: absolute;
                    // transform: translate(-50%, 50px);
                    right: 0;
                    top: 55px;
                    padding: 8px 10px;
                    border-radius: 8px;
                    transition: all .3s;
                    opacity: 0;
                    max-height: 0;
                    max-width: 0;
                    background: url('img/投稿信息图.png') no-repeat center / contain;
                }
            }
        }
    }

}

main {
    width: 100%;
    height: 50000px;
    padding: 0 60px;
    // background-color: yellow;
    position: relative;


}

.channel {
    background-color: white;
    height: 100px;
    display: flex;

    .container .right a:hover {
        svg {
            fill: #00aeec;
        }

        color: #00aeec;
    }

    .icons {
        margin-right: 4px;
        display: flex;
        align-items: center;

        .icon {
            margin-right: 16px;

            .bg {
                width: 40px;
                height: 40px;
                display: flex;
                align-items: center;
                justify-content: center;
                margin-bottom: 6px;
                border-radius: 50%;
                background-color: #F07775;
                overflow: hidden;

                img {
                    display: flex;
                    width: 100%;
                }
            }

            span {
                display: block;
                text-align: center;
                width: 100%;
            }
        }
    }

    .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        font-size: 13px;


        .left {
            display: grid;
            width: 100%;
            grid-auto-flow: column;
            grid-template-rows: repeat(2, 1fr);
            grid-template-columns: repeat(9, 1fr);
            border-right: 1px solid #e3e5e7;
            grid-gap: 10px;
            padding: 0 20px;

            a {
                display: inline-block;
                border: 1 solid white;
                border-radius: 6px;
                text-align: center;
                width: 100%;
                font-weight: 400;
                height: 26px;
                line-height: 26px;
                background-color: #F6F7F8;
                position: relative;

                &:hover {
                    .panel {
                        opacity: 1;
                        max-width: 1000px;
                        max-height: 1000px;
                    }

                    .panel-1 {
                        opacity: 1;
                        max-width: 1000px;
                        max-height: 1000px;
                    }
                }

                .panel-1 {
                    position: absolute;
                    width: 200px;
                    height: 150px;
                    background-color: white;
                    z-index: 1001;
                    transform: translate(-30%, -130%);
                    transition: all .3s;
                    opacity: 0;
                    max-width: 0px;
                    max-height: 0px;
                    background: url('img/Chanel信息图.png') no-repeat center/ cover;
                    border-radius: 5px;
                }

                .panel {
                    position: absolute;
                    width: 200px;
                    height: 150px;
                    background-color: white;
                    z-index: 1001;
                    transform: translate(-30%, 18px);
                    transition: all .3s;
                    opacity: 0;
                    max-width: 0px;
                    max-height: 0px;
                    background: url('img/Chanel信息图.png') no-repeat center/ cover;
                    border-radius: 5px;
                }
            }
        }

        .right {
            width: 230px;
            display: grid;
            grid-auto-flow: column;
            grid-template-rows: repeat(2, 1fr);
            grid-row-gap: 10px;
            flex-shrink: 0;

            a {
                display: flex;
                align-items: center;
                justify-content: flex-end;
                width: 100%;
                color: #61666D;
                text-align: center;
                font-weight: 400;
            }

            svg {
                width: 20px;
                height: 20px;
                margin: 4px;
                fill: #61666D;
            }
        }
    }
}

.content {
    position: relative;
    display: grid;
    /* grid:
        'myArea myArea . . .'
        'myArea myArea . . .'; */
    grid-gap: 20px;
    /* grid-column-start: ; */
    /* align-items: start; */
    /* grid-template-columns: repeat(5, 1fr); */
    // grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    /* height: 10000px; */
    background-color: white;
    justify-content: space-between;

    .items h3 a:hover {
        color: #00aeec;
    }

    .item-slider {
        // width: 500px;
        // background-color: pink;
        grid-column: 1/3;
        max-height: 1000px;
        grid-row: 1/3;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-bottom: 6%;

        .slider-img {
            width: 100%;
            // height: 80%;
            float: left;
            overflow: hidden;

            //     &::after {
            //         content: "";
            //         clear: both;
            //         display: inline-block;
            //         visibility: hidden;
            //     }
            // }
            img {
                width: 100%;
                height: 100%;
            }
        }

        .slider-footer {
            background-color: #0A254F;
            height: 20%;
            width: 100%;
            position: relative;
            font-size: 18px;

            .tool {
                position: absolute;
                bottom: 19px;
                left: 15px;
                color: white;

                ul {
                    display: flex;
                    justify-content: flex-start;
                    align-items: center;
                    margin-top: 10px;

                    li {
                        width: 8px;
                        height: 8px;
                        border-radius: 50%;
                        margin: 4px;
                        background-color: rgba(255, 255, 255, .4);
                        cursor: pointer;

                        &.active {
                            width: 14px;
                            height: 14px;
                            margin: 1px;
                            background-color: white;
                        }
                    }
                }
            }

            .buttons {
                position: absolute;
                bottom: 42px;
                right: 15px;
                // background-color: red;
                display: flex;
                align-items: center;

                button {
                    width: 28px;
                    height: 28px;
                    border-radius: 8px;
                    display: inline-flex;
                    justify-content: center;
                    align-items: center;
                    background-color: rgba(255, 255, 255, .1);
                    border: 0;


                }
            }
        }


    }

    .items {
        // margin-top: 50px;

        img {
            // display: none;
            width: 100%;

            &:hover~.mes {
                // 如果 .mes 是 img 的任意同级元素  
                display: none;
            }
        }

        .top {
            border-radius: 6px;
            overflow: hidden;
            position: relative;


            .mes {
                position: absolute;
                // height: 20px;
                width: 100%;
                height: 38px;
                padding: 8px 8px 6px;
                color: white;
                // background-color: yellowgreen;
                bottom: 0;
                display: flex;
                justify-content: space-between;
                border-bottom-right-radius: 6px;
                border-bottom-left-radius: 6px;



                .left {

                    // background-color: white;
                    // width: 30px;

                    display: flex;
                    justify-content: center;
                    align-items: flex-start;

                    .items {
                        display: flex;
                        justify-content: center;
                        align-items: flex-start;
                        margin-right: 12px;

                        svg {
                            margin-right: 2px;
                        }
                    }
                }

                .right {
                    background-color: blue;
                    // width: 20px;
                }
            }
        }

        h3 {
            font-size: 15px;
            // font-family: 'PingFang SC';
            padding-right: 16px;
            color: #18191c;
            height: 44px;
            line-height: 22px;
            font-style: normal;
            font-weight: 400;


            a {
                font-family: PingFang SC, HarmonyOS_Medium, Helvetica Neue, Microsoft YaHei, sans-serif;
                font-weight: 500;
                letter-spacing: 0;
            }
        }

        .bottom {
            display: flex;
            margin-top: 4px;
            justify-content: flex-start;
            color: #9499a0;
            font-size: 13px;
            align-items: center;

            svg {
                width: 17px;
                height: 17px;
                margin-right: 2px;
                vertical-align: middle;
                transform: translateY(-1px);
                letter-spacing: 0;
            }

            span {
                line-height: 17px;
                letter-spacing: 0;
            }
        }
    }
}

.btn {
    position: absolute;
    left: 100%;
    top: 0;
    width: 40px;
    display: flex;
    padding: 9px;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    transform: translateX(10px);

    img {
        width: 16px;
        height: 16px;
        margin: 0 auto;
        margin-bottom: 6px;

    }

    span {
        font-size: 12px;
        text-align: center;
    }
}